package com.meicet.adapter.utils

import android.graphics.Color
import android.view.View
import com.blankj.utilcode.util.SnackbarUtils
import com.blankj.utilcode.util.ToastUtils
import com.meicet.adapter.R


fun snackbar(view: View, id: Int) {
    SnackbarUtils.with(view)
        .setMessage(view.resources.getString(id))
        .setMessageColor(Color.parseColor("#1C1B1B"))
        .setDuration(SnackbarUtils.LENGTH_SHORT)
        .setBgResource(R.drawable._dialog6_bg_)
        .show().setBackgroundTint(Color.WHITE)
}


fun snackbar(view: View, msg: String) {
    SnackbarUtils.with(view)
        .setMessage(msg)
        .setMessageColor(Color.parseColor("#1C1B1B"))
        .setDuration(SnackbarUtils.LENGTH_SHORT)
        .setBgResource(R.drawable._dialog6_bg_)
        .show().setBackgroundTint(Color.WHITE)
}

fun snackbarL(view: View, id: Int) {
    SnackbarUtils.with(view)
        .setMessage(view.resources.getString(id))
        .setMessageColor(Color.parseColor("#1C1B1B"))
        .setDuration(SnackbarUtils.LENGTH_LONG)
        .setBgResource(R.drawable._dialog6_bg_)
        .show().setBackgroundTint(Color.WHITE)
}

fun snackbarL(view: View, msg: String) {
    SnackbarUtils.with(view)
        .setMessage(msg)
        .setMessageColor(Color.parseColor("#1C1B1B"))
        .setDuration(SnackbarUtils.LENGTH_LONG)
        .setBgResource(R.drawable._dialog6_bg_)
        .show().setBackgroundTint(Color.WHITE)
}
